<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // localStorage.b = 2
    // localStorage['a'] = 1
    // localStorage.setItem("c", 4)
    console.log(localStorage.a);
    console.log(localStorage['c']);
    console.log(localStorage.getItem("b"));
    localStorage.removeItem("b")
  </script>
</body>
</html>